<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta name="description" content="{{ get_value('description') }}" />
    <meta name="keywords" content=" {{ get_value('keywords' )}}"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    {{ get_title() }}

    <!-- Bootstrap Core CSS -->
    <link href="{{constant("ADMIN_TEMPLATE")}}css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="{{constant("ADMIN_TEMPLATE")}}css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- DataTables CSS -->
    <link href="{{constant("ADMIN_TEMPLATE")}}css/plugins/dataTables.bootstrap.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="{{constant("ADMIN_TEMPLATE")}}css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="{{constant("ADMIN_TEMPLATE")}}font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    
    <link href="{{constant("ADMIN_TEMPLATE")}}dist/css/bootstrapValidator.css" rel="stylesheet" type="text/css">
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <script type="text/javascript" src="{{constant("PUBLIC_URL")}}ckeditor/ckeditor.js" charset="utf-8"></script>
    <script type="text/javascript" src="{{constant("PUBLIC_URL")}}ckeditor/ckfinder/ckfinder.js"></script>
    

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><img src="{{constant("PUBLIC_URL")}}images/logo.png" title="vegafone.vn" style="position: relative;
margin-top: 0px; width: 200px;"> </a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                
                <!-- /.dropdown -->
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>{{users['name']}}  <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="{{constant("PUBLIC_URL_ADMIN")}}admin-index/profile"><i class="fa fa-user fa-fw"></i>Thông tin</a>
                        <li><a href="{{constant("PUBLIC_URL_ADMIN")}}login/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        
                        {% if users['group_admin'] == 1 %}
                            <li>
                                <a href="#"><i class="fa fa-user fa-fw"></i><span class="fa arrow"></span> Danh sách thành viên</a>
                                <ul class="nav nav-second-level collapse">
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-users/index">Tất cả</a>
                                    </li>
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-users/add">Thêm mới</a>
                                    </li>
                                </ul>
                            </li>
                        
                         {%endif%}   
                            
                            
                            <li>
                                <a href="#"><i class="fa fa-files-o fa-fw"></i><span class="fa arrow"></span>Danh sách bài thi</a>
                                <ul class="nav nav-second-level collapse">
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-articlegame/add">Thêm mới</a>
                                    </li>
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-articlegame/index">Tất cả</a>
                                    </li>
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-articlegame/indexvideo">Bài thi Video</a>
                                    </li>
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-articlegame/indexpicture">Bài thi hình ảnh</a>
                                    </li>
                                    <li>
                                        <a href="{{constant("PUBLIC_URL_ADMIN")}}admin-articlegame/indexlike">Bài thi like nhiều</a>
                                    </li>
                                </ul>
                            </li>
                            
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
            {{ content() }}
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery Version 1.11.0 -->
    <script src="{{constant("ADMIN_TEMPLATE")}}js/jquery-1.11.0.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{{constant("ADMIN_TEMPLATE")}}js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="{{constant("ADMIN_TEMPLATE")}}js/plugins/metisMenu/metisMenu.min.js"></script>

    <!-- DataTables JavaScript -->
    <script src="{{constant("ADMIN_TEMPLATE")}}js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="{{constant("ADMIN_TEMPLATE")}}js/plugins/dataTables/dataTables.bootstrap.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="{{constant("ADMIN_TEMPLATE")}}js/sb-admin-2.js"></script>
    <script type="text/javascript" src="{{constant("ADMIN_TEMPLATE")}}dist/js/bootstrapValidator.js"></script>
    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').dataTable();
    });
    </script>
    
    <script src="{{constant("ADMIN_TEMPLATE")}}js/validate.js"></script> 
</body>

</html>
